#include <bits/stdc++.h>
using namespace std;
int a[200000];
int main()
{
	int n,k;
	cin >> n >> k;
	for(int i=1;i<=n;i++)
	{
		cin >> a[i];
	}
	sort(a+1,a+n+1);
	int temp=unique(a+1,a+n+1)-a-1;
	/*cout << temp << endl;
	for(int i=1;i<=temp;i++)
	{
		cout << a[i] << " ";
	}
	cout << endl;*/
	if(k<=temp)
	{
		cout << a[k] << endl;
	}
	else
	{
		cout << "NO RESULT" << endl;
	}
	return 0;
}

